# !/usr/bin/env python

from google.appengine.ext import webapp
from google.appengine.ext.webapp import util
import os, sys
#os.path.dirname
#sys.path.append(os.path.dirname(__file__))
#sys.path.insert(0, __file__.split("\\GMT\\")[0])
sys.path.insert(0, os.getcwdu().split(os.sep+"GMT"+os.sep)[0])

import handlers
 
def main():
    app = webapp.WSGIApplication([
        ('/', handlers.mainpage.MainPage),
        ('/post', handlers.mainpage.PostPage),
        ('/tasks/daily', handlers.mainpage.DailyUpdate),
        ('/tasks/weekly', handlers.mainpage.WeeklyUpdate),
        ('/tasks/ever', handlers.mainpage.EverUpdate)       
#        ('/rpc', handlers.rpc.RPCHandler),
#        ('/test', handlers.testpage.TestPage),
#        ('/testJSON', handlers.testpage.TestJSON),
        ], debug=True)
    util.run_wsgi_app(app)

if __name__ == '__main__':
    main()
